package com.stupro.cjlu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.stupro.cjlu.common.vo.TeacherCourseItemVO;
import com.stupro.cjlu.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 2021-05-10
 */
@Repository
public interface CourseMapper extends BaseMapper<Course> {

    @Select("select count(*) from Course")
    Integer count(@Param("teaID")Integer teaID, @Param("coName")String name);

}
